package kr.hkit.powerjava.chapter6.work;

public class programming7 {
	public static void main(String[] args) {
int n = 0;
		for(int a=1; a < 100; a++)
			for(int b=1; b < 100; b++)
				for(int c=1; c < 100; c++)
					if(a*a + b*b == c*c){
						System.out.println("a와 b가 각 각 "+a+","+b+"일때 c는"+c+"이다.");
						
					n++;
					
					}					
		System.out.println(n);
	}
	
}
